import lyRequest from '@/service'

// 查询商家列表(select下拉框格式)
export function getMerchantList(storeName: string) {
  return lyRequest.get({
    url: '/sku/getMerchantList',
    params: { storeName }
  })
}

// 查询指定店铺下的商品列表(select下拉框格式)
export function getProductList(merchantId: number, productName: string) {
  return lyRequest.get({
    url: `/sku/getProductList/${merchantId}`,
    params: { productName }
  })
}
